<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>联系我们</title>
    @include('common-css')
    <style>
        .input_box {
            width: 100%;
            height: 40px;
            margin-top: 15px;
            margin-bottom: 15px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .input_label {
            width: 120px;
            box-sizing: border-box;
        }

        .fileicon {
            width: 16px;
            vertical-align: middle;
        }
        .common_box{
            padding-top: 30px;
        }
        .common_box p {
            margin-bottom: 30px;
        }
    </style>
</head>
<body>

<div id="app">

</div>

</body>
</html>

<script id="appTemplate" type="x-template">
    <a-locale-provider :locale="antdLocale">
        <div class="container">
            @include('home.header')

            <main>
                <div class="common_container">

                    @include('home.aside', ['selectedItem' => 'contact-us'])

                    <div class="common_content">
                        <div class="common_box">
                            <p>奖励办联系人：张冲  电话：010-64868808 转 8007</p>
                            <p>技术支持：北京六古数据股份有限公司&ensp;&ensp;系统支持QQ群：690525155</p>
                            <p>技术人员：张工&ensp;&ensp;电话：18613351381&ensp;&ensp;邮箱：jiangli@liugudata.com</p>
                        </div>
                    </div>
                </div>
            </main>
        </div>

    </a-locale-provider>
</script>
@include('common-js')

<script>

Vue.prototype.$axios = axios
var app = new Vue({
    el: '#app',
    template: '#appTemplate',
    data: {
        changePasswordDialogVisible: false,
        passwordInfo: {
            password: '',
            passwordConfirm: ''
        },
        antdLocale: antd.locales.zh_CN
    },
    mounted() {
    },
    methods: {
        handleHeaderDropdownItemClick: handleHeaderDropdownItemClick,
        handleChangePasswordOk: handleChangePassword,
        handleOrgBusinessLicensePhotoBeforeUpload(file) {
            console.log('handleOrgBusinessLicensePhotoBeforeUpload', file)
            var filename = file.name.toLowerCase()
            if (filename.endsWith('.jpg') || filename.endsWith('.jpeg') || filename.endsWith('.png')) {
                antd.message.loading('正在上传...', 0)
                return true
            } else {
                antd.message.warn('不允许上传该文件格式')
                return false
            }
        },
        handleOrgBusinessLicensePhotoUploadChange(event) {
            console.log('handleOrgBusinessLicensePhotoUploadChange', event)
            if (event.file.status == 'done') {
                antd.message.destroy()
                if (event.file.response.ok) {
                    let photo_path= event.file.response.url
                    axios.post('/api/auth/reupload-org-bizlic-Photo', {photo_path})
                        .then(res => {
                            antd.message.success('上传成功')
                            history.go(0)
                        })
                } else {
                    antd.message.warn('上传失败')
                }
            }
        },
    }
})
</script>
</body>
</html>